package com.czp.ssm.bean;

import java.math.BigDecimal;
import java.util.List;

public class Plane {
    private Long id;

    private String planeId;

    private BigDecimal planePrice;

    private String startDate;

    private String endDate;

    private String startAirportName;

    private String endAirportName;

    private String startCityName;

    private String endCityName;

    private String aircraftPosition;
    
    private Aircraft aircraft;
    
    

    public Aircraft getAircraft() {
		return aircraft;
	}

	public void setAircraft(Aircraft aircraft) {
		this.aircraft = aircraft;
	}

	private Long stock;

    private String planeNumber;

    private String aircraftId;
    
    public String getAircraftId() {
		return aircraftId;
	}

	public void setAircraftId(String aircraftId) {
		this.aircraftId = aircraftId;
	}

	private List<Aircraft> aircrafts;
    
    public List<Aircraft> getAircrafts() {
		return aircrafts;
	}

	public void setAircrafts(List<Aircraft> aircrafts) {
		this.aircrafts = aircrafts;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPlaneId() {
        return planeId;
    }

    public void setPlaneId(String planeId) {
        this.planeId = planeId == null ? null : planeId.trim();
    }

    public BigDecimal getPlanePrice() {
        return planePrice;
    }

    public void setPlanePrice(BigDecimal planePrice) {
        this.planePrice = planePrice;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate == null ? null : startDate.trim();
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate == null ? null : endDate.trim();
    }

    public String getStartAirportName() {
        return startAirportName;
    }

    public void setStartAirportName(String startAirportName) {
        this.startAirportName = startAirportName == null ? null : startAirportName.trim();
    }

    public String getEndAirportName() {
        return endAirportName;
    }

    public void setEndAirportName(String endAirportName) {
        this.endAirportName = endAirportName == null ? null : endAirportName.trim();
    }

    public String getStartCityName() {
        return startCityName;
    }

    public void setStartCityName(String startCityName) {
        this.startCityName = startCityName == null ? null : startCityName.trim();
    }

    public String getEndCityName() {
        return endCityName;
    }

    public void setEndCityName(String endCityName) {
        this.endCityName = endCityName == null ? null : endCityName.trim();
    }

    public String getAircraftPosition() {
        return aircraftPosition;
    }

    public void setAircraftPosition(String aircraftPosition) {
        this.aircraftPosition = aircraftPosition == null ? null : aircraftPosition.trim();
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public String getPlaneNumber() {
        return planeNumber;
    }

    public void setPlaneNumber(String planeNumber) {
        this.planeNumber = planeNumber == null ? null : planeNumber.trim();
    }

	@Override
	public String toString() {
		return "Plane [id=" + id + ", planeId=" + planeId + ", planePrice=" + planePrice + ", startDate=" + startDate
				+ ", endDate=" + endDate + ", startAirportName=" + startAirportName + ", endAirportName="
				+ endAirportName + ", startCityName=" + startCityName + ", endCityName=" + endCityName
				+ ", aircraftPosition=" + aircraftPosition + ", stock=" + stock + ", planeNumber=" + planeNumber + "]";
	}
    
}